some bugs and routes