added logging in parser