better way to set sendenv