fixes console write