another quick fix for error logging