added customizable permsize, 256 ran out for me