moved script load call