changes on Bom authority and also add email function.