reset safety counter method added
settings and external data support added