this function appears to simply print things to the log, and crash hard, commenting it out solves the crash