code style + logging