fix connections
minor fixes