exported ws & conn