add logging in parser