changing when to check custom file