fixed smart command