split opstat into client and master parts