added option for stack size (h_stack)