removed .log
replaced Deferred with own implementation