added connect for local serving