fix path in uploads and fix logger