fix application header and correct routes