use spy instead

https://github.com/popomore/spy