simplify beforeFind and beforePaginate