worked on hg and bash support