added console debugging messages to analyze the malfunctioning ProcessReader