added logs to main