added check for required submessages as well
Merge branch 'master' into pba