wrapper for running targetp