working version, starting upload writing