loader working but not getting to the load function