added pangox-compat and some minor changes