helpers: +print_func +trace_n