avoid access on undef ref
initial checkin of IBS version - to be generalized + merged