setting up datapaths in a more transparent way