id should be string in legacy mode