now looks for inprogress bundle in the case of a file existing in multiple bundles
took out logging and cleaned up