added duino-like loop/setup