ensure data goes to top level first