major refactor of pattern framework
- deleted memory manager API