implemented some logging to improve the condition

See #65