rename Entity package
handle state change