added implementation of services for memory