refs refactor loader