added prompt stuff for hg