fix failings specs - refactor code to use poltergeist