allow user to set target attribtue. refs #476

This request will solve issue #476.