added simple yet effective logging