extract data helpers to separate module