moves async SDK load to top of script