created capture script