replace main loader