fixing some asynch loading issues which only appear in production mode.
had to require some files right at the start of the app rather than in
the forms that use them