changed global state key constant to PACKAGE_STATE