changed connect

modified the connect to have a timer.