maybe this should go to a separate function?
var hash = parse(data); or something like that