added file checker