added wayback machine query, and promises