added flags for ignorecase among others, it's nice to finally have those be runtime setable.