make intent object pointer optional.