lua script to bounce regions w/processing and replace the region