added version and time to state