move load logic to configuration