better direct access detection