disallowing operations if state is not good for them
disallowing operations if state is not good for them

Signed-off-by: Pawel Loj <2220c48afaa821d4ab13512e9018e6b03477733b@gmail.com>

jtk54/HyperDex,jtk54/HyperDex,hyc/HyperDex,vashstorm/HyperDex,vashstorm/HyperDex,hyc/HyperDex,hyc/HyperDex,hyc/HyperDex,UIKit0/HyperDex,vashstorm/HyperDex,jtk54/HyperDex,UIKit0/HyperDex,pombredanne/HyperDex,jtk54/HyperDex,jtk54/HyperDex,pombredanne/HyperDex,hyc/HyperDex,rescrv/HyperDex,pombredanne/HyperDex,cactorium/HyperDex,rescrv/HyperDex,tempbottle/HyperDex,jtk54/HyperDex,jtk54/HyperDex,UIKit0/HyperDex,pombredanne/HyperDex,rescrv/HyperDex,tempbottle/HyperDex,vashstorm/HyperDex,hyc/HyperDex,UIKit0/HyperDex,cactorium/HyperDex,cactorium/HyperDex,cactorium/HyperDex,tempbottle/HyperDex,pombredanne/HyperDex,rescrv/HyperDex,vashstorm/HyperDex,cactorium/HyperDex,vashstorm/HyperDex,tempbottle/HyperDex,pombredanne/HyperDex,tempbottle/HyperDex,UIKit0/HyperDex,hyc/HyperDex,UIKit0/HyperDex,cactorium/HyperDex,tempbottle/HyperDex,rescrv/HyperDex,UIKit0/HyperDex,rescrv/HyperDex,vashstorm/HyperDex,pombredanne/HyperDex,vashstorm/HyperDex,UIKit0/HyperDex,pombredanne/HyperDex,hyc/HyperDex,jtk54/HyperDex,tempbottle/HyperDex,rescrv/HyperDex,jtk54/HyperDex,rescrv/HyperDex,cactorium/HyperDex,tempbottle/HyperDex,cactorium/HyperDex,UIKit0/HyperDex,tempbottle/HyperDex,pombredanne/HyperDex,cactorium/HyperDex,vashstorm/HyperDex,rescrv/HyperDex