retrieve & upload working (some isssues in the retrieve still)