being back api-9-specific stuff with wrapper to be api-8-compatible; bump minimum api version to 8.