updated advance loader example