parameterise checking key
working on anyconn