make allowances for use in browser