fixed url resource parsing, draft of new object factory