fixing admin script