implement periods with xis refs
just some comment-stripping