add check of filesize