please remove TODO and printStackTrace() and use proper logging instead