tried to simplify resource structure