add pty to deploy