updated console-macro