added root and posts resource