first pass at refactoring common mixins and vairables into a core file