script rewrite to ditch chrome log warning