fixed logging to access log file