add rudimentary download function.