integrate with orm