add ability to execute commands in the foreground