improve control flow in uploadFile
remove bogus keyword
update dev dependencies