adding proper logging / 3