added definitions to check the reset status upon initialisation