please use proper logging instead of printStackTrace()