set max stack size to 1