starting to move the old ldr to the new one

This is the last version that compiled and ran correctly