mslib implementation

not working yet - but mslib getting close - data is incorrect format
somehow