updated curl example