added file upload, config file