wip, add decoding and squeleton of first useful feature