fix json/html routes