updated new connection and set variable commands