add namespace check
rename plotting script