fixed cyclic dependency between resources and ::server