small HTTP function; etc