add upload, fixing api