optimize check email action and add acl support