add error checking for --type being only git/pe