refactor- move the loading sequence around so it makes more sense