make compat with riftserver