Upload pesticide script REWORK: needs to be rewriten in an object