remove release_id from globals
shell/scriptname to uppercase
rename p variables to proc
rename m variables to match