fixed ability to specify target name