blocks are now processed per statement so that it's possible to reference vars within script