ALEX: seperate assertvalid and assertstructvalid
ALEX: fix validation