cleaned up console logging