new Lotus router

cloned from https://gist.github.com/jodosha/8594998