add a way to print backtraces and fix ifnull/ifnonnull