updated connect

added a potential timer and some other code for testing