add datalayer to api