fixes on IR and frame alloclocal