added getCurrentTarget, isCloseToEntry and getAvailableEntryPoints from
our previous project modified so that they are compatible