encoder/decoder fix + initial lpm config

Change-Id: Id6a306b67a73ba90c0f559d1e58abda90d568143