fixing sysfile generation