fix parser factory and add mime4j