merged and extract.py