fix uploading - switching to strict mode broke it