added key retrieval from page and cf_local_free to header file