create RemoteStorageRequestHandler and move some stuff there