added fixpermissions option