add poltergeist debugging