clean up err.sh file to relevant deMon file paths and have if statements to appropriate minimizations