curl command in wrong place