Ensure extensions are loaded before processing keys

@cpennington, @sarina
prob want to apply this above L178