extensive logging & full usage of regex