v1 of capture script