Better plugit architecture from io-enc

NB: There is only moves of code