fixed console logging