remove NUKE_PATH dependency, update to customWrite