uhm this is not even fitting in the github preview screen…  it could be rewritten in some more readable way!