fix order in building models
fix require
building models from forms