move reset keys logic to sls