attach/detach added back to ORM