updated hypm ctd to use new state object