move magic comment to toplevel
tweak
added auto generate if never run to