removing useless imports and substitution in Mongo Parser