added resend and sendall command