fix content type, fix some endpoints