update garbage collector to sleep correctly