added stuff for store in background