partial lib now works for prefix trees