fixes for curl