no more logging via printStackTrace
improve platform optimization