reads key from config