added exit status to ps1