avalon for timeout allow d='calculate it' and fix uninitialised