avoid 'endless' memory consumption