smart data handling