added '-t' flag for tracing