file loading framework