fixed target attribute for trigger
changed scope for finding parameters
added tests bind method