added connect stmt