fix load order, prevent hooks/commands from using uninitialized config