ah, there was another missing return statement. no more heisenbug now.