file type/size checking