LSD codebase