restructure curl