split up capture.py into more specific tasks, tested load_samples