fix debug code, demo page routes