add master slave spawning