fixes scratch, fixes startup in rc.lua