updated to make console logging consistent