added port checks during intallation