use handleIds instead of handles