fix spawn issues and add cross platform env support
fix hanging issues
0.6.0