removing filepermissions tasks and adding them to the template tasks