simplified to work with mongoengine and removed unnecessary files