fixed PS1 environment assumption