cleanup
add idrefs to state generator