implementing spies
adding spyOff to turn off static spying