use define for curl workaround