major structure overhaul

Signed-off-by: Markus Gattol <markus.gattol@sunoano.org>