please remove printStackTrace() and implement proper logging