main loop basics in place.