updated to be compat with chrome only