add logging, checkbox