use sha1 library correctly
working read/write