removed setDataHandler from api