Fix scripts, refmap, header, settings