Try to do something with the messy encoders

Signed-off-by: Nikta <wkernelteam@gmail.ru>