cleans up curl