first version for upload to server