still fighting repeating group length
added some helper for working with formdef