load resources (not tested)