cleanup/comment
test phi/lub for keyid