switch to loaddefs