bumped mongoose connection pool to 40 concurrent connections to mongoDB. It now writes ways as fast as it can read them.
cleaning queue end logic.
fixing merge error
its better to check queue.node.length() than to use flags.