factoring out common vars into a separate file