HASTINGS, Pa. (AP) — Two Amish farmers who said their religious beliefs prevent them from operating outhouses in compliance with state sewage laws have been sentenced to 90 days in jail.

County sewage officials said Andy Swartzentruber and Sam Yoder do not have permits for outhouses at a school and have been collecting waste in plastic buckets and dumping it onto fields. They were offered community service instead of jail but refused.

The men are members of the Swartzentruber Amish. While all Amish shun the modern world, the Swartzentrubers are known for their more severe restrictions on technology and interaction with the outside world. The men, along with at least 10 others from the local Amish community, traveled about 90 minutes by horse and buggy to the courtroom.

A district judge offered the men a chance to pay a fine or perform community service in order to avoid jail time, but both declined.

"I guess I have to keep with my religion," Swartzentruber said June 12, leaning over at times during the hearing and rubbing his forehead. "I'm going to stay with my religion."

The men have until July 21 to appeal or report to jail.