move calldepth value to the genRuntime function
errorString -> errString