add main loader