adds better support for localization in behaviors
gets through set state