added option to change loader