improved compatability for older android versions