more functionality of / and /posts