reworked store initialization