log file created w correct permissions
fixed some stuff