exception handling; logging; tests regex rules a bit