updating code for older MEAN builds.