removed unnecessary import of mainloop