adding max file checker