applied lib_ patches