fix log and store