add methods for compatibility with fantasyland

https://github.com/fantasyland/fantasy-land