accept command as argument in logic