methods for copying alternates and supporting multi-level rewriting added.
first steps towards second level filtering.