slave mode code & basic design doc