refactor hunchentoot utils