refactoring: move Models to backend