curl cleanup