shift accounting mechanism

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
remove superfluous struct

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
get rid of unused functions

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>