chrome function helpers