added debug messages for child apis