add in extract and check multiple keys functions