changing the loader approach