handle unsupported ops in m9
refactor to use entity managers
handle cluster == null.
add some logs.
handle cluster == null.
add some logs.