preliminary scratch work on moving check_atom to decorators. Works but breaks sanitization code.