brainstomed and added layout for terminating master / workers