introduce command and task validation (initialize function)