expanded environment handling