added support for structs over 127 bytes