fixed out-of-range message in out-of-scope store, verification of data posted to gateway and added more logs