in the middle of refactoring for dynamic decisions