build percontation for tab completion