updated parserdaemon java code