adding connection managment and advance and reverse commands