extract loading to separate file - planning to test the hook