refactored ObjectMapper creation