fixed mongo helpers