converting bb-rest to Jackson 2