fix minor build fault (clean bit was removed)
improve error handler
improve error handler
bitfield some stuff to reduce structure size