adding ability to retrieve dynamic flag externally