unused code cleanup
upload data is working
enable CORS