added adapter for JDeferred library