added trace messages to parser