small changes to prototype the slave