imitate the command