updated to accomodate recent chrome changes