added more log messages to the main task