adds pty support