an implementation of mirsynergy