fixes a few issues
json mime header
pretty print via url