corrected slave scripts