fix hash prefix/suffix stuff