twice as fast: sanity checks and log.debug calls removed