complete rewrite

Signed-off-by: Tibor Vass <teabee89@gmail.com>
x

Signed-off-by: Tibor Vass <teabee89@gmail.com>