adding --keepalive argument for slaves