allow tty config to be specified in run