import functions only once at startup

load functions and call from static.
Verbose errors if misconfigured or bad app order.