make target pass methods to constructor