restore the dependencies; pty