autodetect store id