better function naming, fixed loadAllKeys to be correct