maxchildren checking and messages amended