viewer works now + random code