add some missing methods (fromMemory stuff)