index and upload working