try to fix call to md5sum
fix constructor call; simplify code