updated to support chrome