move admin resolver into separate file