better error logging
fixed childrenByType call
v1.3.1