removing dependency on package 'connect'