IS: ruuuby
IS: fix max bug, add indexes