removed the slave mode stuff