fix bug + read delay options from data