auto generation of invoke() cases added