adjust environment size depending on input data
refactoring of the create hives method (not finished)