added sb-ext:quit
moved around code for loading files