removed leftover console.log, changed init of custom loader to be more concise