write warning messages (#15)