updated lsp.c to fix epoch