some bugifxes for alloca handling