first semi-working version

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>