get rid of reference search in stub generation