* allow up to 5 GB files
* fix error loggin