fixed bug in new ps1
added hg to ps1