hacky conversion of fh to ruby