added thread.bash