For binding to DOs in the same script you dont provide script_name or environment. If you try that way does it work?