abstracted out the environment variable in buildinit