[yanan] pseudo code for datamanager api