add getCurrTarget function that return current target object
commit 3fcdfdd9075cb4347444048d4b7b85c69f362f69