function library inherit_from fix