domain existence check added