some progress toward importing red notebook