replaced unique_ptr by scoped pointer; not sure if this will resolve a bug which was caused by too late deletion of a future. has to be tested