stub mainloop properly