added keeptitle and keepnotfound arguments