final re-arrangement of notebook connection stuff