simple sub command handling