make invoke work