merged unmanaged code