needed to delay the loading of files until after init. unsure why it
crashes in mac