make stacksize more portable