- fix md5 computation and indexing
- fix input/output binary checking