working on getting ldm portion to work