begin mozilla compatibility