proper child maneuvering
added pretty print