support pty. drop support for old perf