initiate shared state