fixed by moving objectMapper creation to constructor