restoring the 'updateEnvironment' for now... Will be removed ASAP