step towards generic LastError