added ensure parameter to chrome class