use a MAX_FILE_SIZE constant (and add a TODO about it)