2. change Sample funcs from package inputs to types to avoid cycle imports 3. add runtimex.Stack to print stack detail when panic