several bugs fixes and disabled stack_alloc/stack_free