add mongoid initializer hook