sub command works