added script structure