check if DATA_SOURCE is defined