fix d_msg() i with
cleanup