add parsing of asm statements, avoid some statement casts