timeout and delay parameters added
phantomshot error processing added