added smaller limit on stack size