moved thread-starting into .start()