new loader updated code