add logs to help with debugging