module to query fptree