refactor. removed unneeded open-uri call