making sure portindex is up to date before doing anything else