WIP: moved env to uri2ind, added filebucket env