build slave config