edit to the way empty labs are handled and movement of dynamic lab to a separate file