fixed threading issue

started allowing commands to be used.