put back : a fix to skipping wma request for status toggling 6348ed892c27178d67277754542f427be0acd378
put back : some type casting protections 3ee281781fca4fd5f967e65f2387016105f1dca2