Well Daniel,
You were right, i was mixing up both the namespaces and that screwed up the code.
Now i'm   qualifiying the bind function, with the appropriate namespace. That solved the problem.

Thanks,
Surya