correcting loading scripts