support for AnyMemo
refactoring