cleaned up connection