moved script timeout statement