fix bugs in bucket calculations
add support for reading misnamed logfiles