allow 'first' element to be a path string, not simply a bucket name