temporary fix for stack size == cost