better support for multiline script
use up/down key to select history
able to set application and select context