some programs and doc written by fenggao