handling potential issues