lib: support user prefix names in term generation