route setting and some debug