add missing self  to replace method
make routes part of the options instead of their own parameter
version bump to 2.2