capture scripts