added chmemcore patch