switched schema building to after models