add get/set/create for element members to c api