added code for file parsing and upload