added factory for services of storage