added script to main