make the addon system work on mac
and fix bugs with the addon system