content-type set to json, bugfixes