various stuff + unit test for uploading runs