add localname, group and hide to options object