fixed meta.py to handle errors better