add logging to fileparser