added get target function
added register function
Merge remote-tracking branch 'origin/Eli'