setup to work with slave