added support for stack overrun