update to latest logging and coding style