add logging to the init