fixed unsafe threading operations
gitignore