fix stack level too deep in routes (WTF?)