add ptrace and genc tool