change script for curl pipe