adjusted Rules to accomodate adoc extension