msvc support
fix for ready flag to work properly in cli. upgrade & restart by pid fix.