added function fatal(), called from stack handling macros