backed out do while on rsEnvironments execution