updated to work for new wcs.py