setting up core and users states