better solution for undeclared routes