sync requests code