renamed calc to xsh_calc