globally defined base path and error path, now replacing old occurences with these
refactored flot to use new globals