add support for uploading data, stability fixes