added precentages and ability to test on any dir