add prepare function and sleep per ssh