backward compatible function loading