updated to allow using store code as first argument