Hook prefix modes on load