add async but not work because variables is in other processes.
now works asynchronous compiler option detection
separated functions