first attempt at capture script