set data root dynamically