tuning new data source code for resources