cleaning up curl