exports extract and validation functions