refatoring: rename environment to eb_environment, we will use term
"environment" for a more higher level concept