added a payment script and other stuff