fix logic with async.series, initial tests with relay