add ps1 with error status