Added commant pathcheck and fix SSAPI 2