added exit action and script