modeling commons upload: code improvement