add check for curl