created interface for DataManager and replaced usages