complete and beforeSend