data fetch config and method refactor