added slave mode to OmniApp