stargate for internal usage