adding cast to suppress warnings
removing depracated code for StoreManager