this is called only once per command type during initialization