got target working as a derivative of motiondetector... still some things that need polishing