moved extract code to utils.py