starting point for logic in carduino library