add details, create controllers
resource factory