simplify atags
cleanup print.c