fixes; began connectivity code