adding pty option to execute