improved digger to allow searching by mime-type
minor fix