commenting out some of the reduces clauses seem to speed things up. no timeout now.