move atoip out of config (small helper) and test it.
remove some unnecessary variables from laws.c