refactoring LRS as a separate project