added "light" option to reduce memory requirements