script for curl