Improve parser so that it can apply both to settings and formats
merge settings and available formats