refactor filestorage resource in sharedresource