 
             else
                 #console.log 'create SID'
-                @createSID (err, SID)=>
+                @_registry.createSID (err, SID)=>
 
                     #console.log 'create cookie', SID
 

        ##
        ##
        createSID: (fn)->
            @_registry.createSID fn

                        floyd.tools.objects.intercept res, 'end', (args..., end)=>
                            end.apply res, args

                            req.session = res.session = null 

                        ##
                        next()
