renamed hash to avoid conflict with bash builtin