cleaning up logging in parser (far from perfect)