moved scripts around for faster loading