wasnt initializing system code... added call to GlobalDef