moved start of script