make browser api backwards compatible