some progress tracing function
fixed a bug and corrected one reference file