added more  logging