scripts for capture and release