making sure the layouts variable and others are always available