ok, first version seems to work, let's make it pretty now