get rid of global $modx