used hcat/vcat trick in ptrace implementation