fixed bug, now supports set(...)  methods for target classes