scrapped file testing logic, let's simplify it