add preliminary pretty url functionality