rprograms now write error messages to log files