move this to a ```extract.py``` or something.