and update to ghost.py