change createLinks to initEnvSetup