added consent check functions