started to write connectivity code