added initial attempt for LM data wrapper