draft implementation of janus_compare