use curl instead of LWP