clean up the source, add hashes