temporarily switching out of Scala reflection