major ps_1 update, switched to key retrieval algorithm