file permissions adjusted
new script for simple threads