replace lib file