explain usage of attached scripts