the build_hash function is working, stuck on File.open