bugfix, add trailing '/' to path
autogenerate color list for legend if not specified