added name and mock check for envirorment - rest service