Backend for mercury editor