logging improvements. fix build targets