fix additional bugs related to localsfs