remove cli specifc stuff from restore command