major refactoring of morph creator (utils)