added timer for how long time it takes to get a connection #10