working on a faster version of capture.py b/c that thing takes way too long