Fix nopt settings, add local flag