added environment and domain