add logs and update spec