changing instanceof use to duck typing to allow multiple instances of futures without problem