try to add API 10+ support