fixed upload template, added format.json, fixed download