modified to work with new IteroJS version