changed csp.apply() andadded csp.bind() for wrapping Node-style functions