fix some broken compile options. implement leonardo style uploader tricks