update
changed so it won't run in separate thread
updated the start script