fix publication for direct stageout
make max_retries, job_id and retry_count's integers instead of strings; increase max_retries by 3 instead of 10 for each resubmission