insure beginRecordCode() is singleton