added logging to Parser