appended stderr to log. Fixed missing reference