import routines with fix to globals for activation process