use royces hashdump and minor bug fix