add indices to virtual server resources
slightly refactor/optimize inject block in available_*resource*