load keys correctly