working prototype; refactored urls;