added mem stubs for testing