Refactor load, using requireFile