fix #54
added function spy