improved the logic switching between External and Internal indexing
increment version number