added file hashing, stdin still needs a separate case