declare necessary variables before sourcing sub-modules