merge of lsp.h