fix semi handling for alt and add thunk object