update codes for gtdlog/ptlog