updated router and handler to deliver other resources as plain text