Design principles and precautionary measures for a resilient home