error handling and mongoid improves