added memory handler and tests