started adding slave mode switch for comms init