more meaningful return codes for addr_cidr
config loading refactoring