added logging to store