wrap in pty.js for making it possible to daemonize