initial, pretty messy and unreadable

Signed-off-by: Adrian Matejov <a.matejov@centrum.sk>