added print-msg macro