use relative stack index for error handler in lsp()