added delay to authorization script