secret salt and content type fixes