changed class slave to define to allow multiple instances