logging system + first tests