changed deprecated load_key