updated curl syntax