added global script and style handling to system