adding script to main