changed logfile open params
have to restructure due to Cedar's file system