more notes on multithreading issues and working with code section