Refactoring to use mew TOS  bridge API