through observer pattern command map is obsolete